# coding=utf-8
# author=haishan09@gmail.com
from django.conf.urls import url
from django.contrib.auth.decorators import login_required  
from report import views

urlpatterns = [
    url(r'theme/(?P<theme_id>\d+)/$', views.ThemeView.as_view(), name='report_theme'),
    url(r'theme/(?P<theme_id>\d+)/detail/(?P<report_id>\d+)/$', views.ReportView.as_view(), name='report_detail'),
    url(r'cubeship/chart/formtemplate/$', views.ChartConfigFormTemplate.as_view(), name='drilldown_form_template'),
    url(r'cubeship/drilldown/formtemplate/$', views.DrilldownFormSetTemplate.as_view(), name='drilldown_form_template'),
    url(r'cubeship/cut/formtemplate/$', views.CutFormSetTemplate.as_view(), name='cut_form_template'),
    url(r'cubeship/aggregate/formtemplate/$', views.AggregateFormSetTemplate.as_view(), name='aggregate_form_template'),
    url(r'cubeship/orderby/formtemplate/$', views.OrderByFormSetTemplate.as_view(), name='orderby_form_template'),
    url(r'cubeship/add/$', views.CubeShipManager.as_view(), name='cubeship_add'),
    url(r'cubeship/(?P<cubeship_id>\d+)/change/$', views.CubeShipManager.as_view(), name='cubeship_change'),
    url(r'cubeship/getdata/$', views.CubeShipGetData.as_view(), name='cubeship_get_data'),
    url(r'cubeship/getconfig/$', views.CubeShipGetConfig.as_view(), name='cubeship_get_config'),
]
